package lxyy;
public class Course {

    // 课程编号
    private String courseId;
    // 课程名称
    private String courseName;
    // 任课教师
    private String teacher;

    // 无参构造方法
    public Course() {
    }

    // 带参构造方法
    public Course(String courseId, String courseName, String teacher) {
        this.courseId = courseId;
        this.courseName = courseName;
        this.teacher = teacher;
    }

    // courseId的getter方法
    public String getCourseId() {
        return courseId;
    }

    // courseId的setter方法
    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    // courseName的getter方法
    public String getCourseName() {
        return courseName;
    }

    // courseName的setter方法
    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    // teacher的getter方法
    public String getTeacher() {
        return teacher;
    }

    // teacher的setter方法
    public void setTeacher(String teacher) {
        this.teacher = teacher;
    }

    // 打印课程信息的方法
    public void showInfo() {
        System.out.println("课程编号：" + courseId);
        System.out.println("课程名称：" + courseName);
        System.out.println("任课教师：" + teacher);
    }


}
